
// Object.getPrototypeOf用来从子类上获取父类
class Foo {
    

}

class Bar extends Foo{
    
}

const bar = new Bar()
console.log(Object.getPrototypeOf(Bar) === Foo)